<?php
	header("Content-type:text/html;charset=utf-8");
	
	$name = $_POST["userName"];
	
	
	$conn = mysql_connect("localhost","root","123456");
	
	mysql_select_db("mylol");
	
	$result = mysql_query("select * from user where uName = '$name'",$conn);
	
	
	if(mysql_num_rows($result) == 1){
		
		echo "0";
	}else{
		
		echo "1";
	}
	
	mysql_close($conn);
?>